import StatusBar from '@/components/assetsManage/Tabs'
import XSticky from '@/components/assetsManage/Sticky'

export default {
  data() {
    return {
      listHeight: 0,
      type: 0,
    }
  },
  mounted(){
    const data = uni.getSystemInfoSync()
    this.listHeight = data.windowHeight - 66
  },
  onShow(){
    this.$nextTick(() => {
      this.$refs.updata.totalPage = NaN
      this.$refs.updata.pageIndex = 1
      this.$refs.updata.list = []
      this.$refs.updata.getList()
    })
  },
  methods: {
    toChooseTimePage () {
      uni.navigateTo({
        url: '/pages_common/pages_me/assets/chooseTime/chooseTime'
      })
    },

    changeTab(i){
      this.type = i
    }
  },
  components: {
    XSticky,
    StatusBar
  }
}